home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2733 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  2.6 KB

  1. Path: dragon.solect.com!usenet
  2. From: gallantm@kanservu.ca (Matt Gallant)
  3. Newsgroups: comp.lang.c++,comp.programming
  4. Subject: Re: Why are 32 bit better than 16 bit pgms?
  5. Date: 19 Jan 1996 07:58:12 GMT
  6. Organization: KanServU Bureau, Inc.  Aylmer, Ontario Canada
  7. Message-ID: <4dniuk$lms@dragon.solect.com>
  8. References: <30FBFFE6.1FEB@netcom.com>
  9. NNTP-Posting-Host: ts1p09.kanservu.ca
  10. Mime-Version: 1.0
  11. Content-Type: Text/Plain; charset=US-ASCII
  12. X-Newsreader: WinVN 0.99.7
  13.  
  14. In article <30FBFFE6.1FEB@netcom.com>, vain@netcom.com says...
  15. >
  16. >I have a simple questions:
  17. >
  18. >   What's are 32 bit pgms better than 16 bit programs?
  19. >
  20. >   Thanks!
  21.  
  22. The answer to this question can be a matter of opinion.  The common answers 
  23. given are:
  24.  
  25. 1. For developers, programming becomes easier because you no longer have to 
  26. worry about memory segmentation.  Because of this, data structures and blocks 
  27. are no longer limited to 64K.  No more segment:offset addressing.  Your 
  28. program can "pretend" that memory is a "flat" range, and just use 32-bit pointers 
  29. ranging from byte 0 through 4GB.  (Of course, not all of this memory area is valid 
  30. to the process without making the proper memory allocations)
  31.  
  32. 2. 32-bit programs are pre-emptively multitasked.  A 32-bit application can no 
  33. longer hog the process by not yielding on a timely basis.  (There is one snag to 
  34. this scheme if you're running on Windows 95, and if you develop for Windows 95 
  35. you are sure to hear about it.  This "snag" is refered to as the Win16Lock or 
  36. Win16Mutex.)
  37.  
  38. 3. 32-bit programs are (to a large extent) portable.  If written correctly, one set 
  39. of source files can be compiled and run on Windows 95 and Windows NT, as well 
  40. as being compiled for other non-Intel x86 platforms (i.e.  Alpha processors).
  41.  
  42. 4. Also, consider that as new APIs are developed (by Microsoft and 3rd parties) 
  43. that they will probably only be ported to the Win32 platforms.  For example, I 
  44. was just reading an Microsoft Systems Journal article about their new Speech API. 
  45.  I'm not sure that it's necessarily 32-bit only, but obviously, something as 
  46. processing-intensive as speech synthesis and speech recognition will benefit from 
  47. 32-bits.
  48.  
  49. 5. Last, but definitely not least, 32-bit programs are allowed to have multiple 
  50. threads of execution.  This allows you to easily create and execute routines "in the 
  51. background" just by creating a new thread.  You no longer have to set up your 
  52. different tasks to be done and come up with ways of switching between them 
  53. yourself, just create a new thread, and Win32 platforms will schedule your 
  54. background tasks themselves.
  55.  
  56. I hope this is what you were looking for. :-)
  57.  
  58.  
  59. -- 
  60. Matt Gallant
  61. Aylmer, Ontario Canada
  62.  
  63.